
NAME=		gomoku

SRCS=		main.cpp		\
		GUI.cpp			\
		GObject.cpp		\
		Coor.cpp		\
		ImgException.cpp	\
		MainMenu.cpp		\
		OptionMenu.cpp		\
		Pvp.cpp			\
		PvpW.cpp		\
		PvpB.cpp		\
		Interpreter.cpp		\
		ConnectMenu.cpp		\
		config/Video.cpp	\
		Data.cpp

OBJS=		$(SRCS:.cpp=.o)

CC=		g++ -g

CXXFLAGS=	-Wall -Wextra -Werror -g -I./include/

LD_FGLAGS=	-L. -lsfml-system -lsfml-window -lsfml-graphics -lsfml-network	\
		-Wl,-rpath=./lib

RM=		rm -f

$(NAME):	$(OBJS)
		$(CC) -o $(NAME) $(LD_FGLAGS) $(OBJS) 

all:		$(NAME)

clean:
		$(RM) $(OBJS) *# *~

fclean:		clean
		$(RM) $(NAME)

re:		fclean $(NAME)

.PHONY:		all clean fclean re